package 面向对象_中.e多态性.练习3;

/**
 * @Projectname java_based
 * @Filename GeometricObject
 * @Author an
 * @Data 2022/7/2 10:34
 * @Description TODO
 */
/*
 * 定义三个类，父类GeometricObject代表几何形状，子类Circle代表圆形，MyRectangle代表矩形。
 */
public class GeometricObject {
    protected String color;
    protected double weight;
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public double getWeight() {
        return weight;
    }
    public void setWeight(double weight) {
        this.weight = weight;
    }
    public GeometricObject(String color, double weight) {
        super();
        this.color = color;
        this.weight = weight;
    }

    public double findArea(){
        return 0.0;
    }
}
